import ajax from "./axios";

//推荐歌单
export const ResPushMusic = () => ajax.get("/personalized?limit=6");

//最新歌曲
export const ResNewSongs = () => ajax.get("/personalized/newsong?limit=17");

// 热门音乐
export const ResHotMusic = () => ajax.get("/playlist/detail?id=3778678");

// 热门搜索
export const ResSearch = () => ajax.get("/search/hot");

//歌单播放列表
export const ResPlayList = (id) => ajax.get(`/PlayList/detail?id=${id}`);

//获取用户歌单
export const GetUserPlaylist = (id) => ajax.get(`/user/playlist?uid=${id}`);

//获取用户歌单所有歌曲
export const GetUserPlaylistAll = (id) => ajax.get(`/playlist/track/all?id=${id}`);

// //用户登录
// export const UserLogin = (data) =>
//   ajax.post("/login/cellphone", qs.stringify(data))
//用户登录
export const UserLogin = (data) =>
  ajax.get(`/login/cellphone?phone=${data.phone}&password=${data.password}`)
